//
//  GlobalMarco.h
//  JYT_IOS
//
//  Created by nxa-tankeke on 16/12/14.
//  Copyright © 2016年 nxa-yuanguoxiang. All rights reserved.
//

#ifndef GlobalMarco_h
#define GlobalMarco_h

#import <CommonCrypto/CommonDigest.h> //MD5加密用的头文件
#import "GTMBase64.h" //base64加密用的头文件

#import "Masonry.h"
#import "JYTHttpClient.h"
#import "MJExtension.h"
#import "JYTUserManager.h"
#import "IQKeyboardManager.h"
#import "JYTPublicClass.h"
#import "UIImageView+WebCache.h"
// 1.判断是否为iPhone5的宏
#define iPhone5 ([UIScreen mainScreen].bounds.size.height == 568)

// 2.日志输出宏定义
#ifdef DEBUG
// 调试状态
#define MyLog(...) NSLog(__VA_ARGS__)
#else
// 发布状态
#define MyLog(...)
#endif

// 3.获得RGB颜色
#define kColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]

//#define HexColor(hex) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]


// 4.全局的背景色
#define GlobalBackgroundColor kColor(230, 230, 230)

// 5.字体设置
#define FontSize(size) ([UIFont systemFontOfSize:size])

//6.navgationBarHeight
#define NAVIGATION_BAR_HEIGHT  (44)

//7.currentScreenHeight
#define CURRENT_SCREEN_HEIGHT   ([[UIScreen mainScreen] bounds].size.height)

//8.currentScreenWidth
#define CURRENT_SCREEN_WIDTH     ([[UIScreen mainScreen] bounds].size.width)

//9.statusBarHeight
#define STATUS_BAR_HEIGHT  (20)

#define TAB_BAR_HEIGHT  (70)

#define YGXUserSexMale @"男"
#define YGXUserSexFemale @"女"
#endif /* GlobalMarco_h */
